package com.yc.cinema.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;


@Controller
public class AccountController {

    @RequestMapping("/save")
    //设置当前返回值的类型
    @ResponseBody
    public String save(@RequestBody MyUser myUser){
        System.out.println("myUser = " + myUser);
        return "hello world";
    }

}
